package zmh.lookup;

import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.stereotype.Component;
import zmh.bean.Fruit;

/**
 * @author zhangminhang1
 */
@Component
public class FruitFactory {

    /**
     * 获取水果
     * @return
     */
    @Lookup("apple")
    public Fruit getFruit(){
        return null;
    };
}
